package cars;
import cars.entities.EntityAITO;
import cars.entities.EntityXIAOMI;
public class Factory {
    public static Cars getCarName(String carName){
        Cars car=null;
        if (carName == "小米"){
            car = new EntityXIAOMI();
        } else if(carName == "问界"){
            car = new EntityAITO();
        }
        return car;
    }
}